import apis from '../../http/apis/apis';
export default {
    namespaced: true,
    personInfo: {},
    state: {
    },
    mutations: {
        getPersonAction(state, data) {
            state.personInfo = data
        }
    },
    actions: {
        async getPersonAction(context, personInfo) {
            let data = await apis.personal.getPerson({ _id: personInfo })
            context.commit('getPersonAction', data.data[0])
        },
        async updateSalespersons(context, result) {
            let data = await apis.personal.updatePersonInfo(result);
            return data
        },
    }

}